Klasse ExportFilePresenter

Alle implementierten Schnittstellen:
NamedExtension, Cloneable
Bekannte direkte Unterklassen:
DifferencesPDFPresenter, DifferencesPNGPresenter

public abstract class ExportFilePresenter extends ExportPresenter
Sub-Presenter for Differences-Exports creating a file result, such as PDF or PNG.
  • Konstruktordetails

    • ExportFilePresenter

      public ExportFilePresenter()
  • Methodendetails

    • applyPrintRange

      protected void applyPrintRange(ExportFilePresenter.HasPrintRange printToX)
      Set the print range to the Print-implementation.
      Parameter:
      printToX - the print implementation
      Seit:
      i-net PDFC 3.0
    • setPrintRange

      public void setPrintRange(int from, int to)
      Set the range of pages to render into the export-document.
      If both parameters are -1, all pages will be printed. This is the default setting.
      Parameter:
      from - the first page to include, 0-based.
      to - the last page to include, must be greater or equal to from and smaller than the total number of pages available
      Seit:
      i-net PDFC 3.0
    • configure

      public BasePresenter configure(IProfile configuration)
      Sets a boolean flag indicating whether an export will be generated when there are no differences found in the compared PDFs.

      Default value is false.

      differences found in the compared PDFs, if set to false an export will always be generated even when there are no differences.
    • getExportStream

      protected OutputStream getExportStream() throws IOException
      Opens an returns an output stream for the result of the current BasePresenter.getModel(). The caller of this method will close the stream itself!
      Gibt zurück:
      the stream to write the current result to
      Löst aus:
      IOException - thrown in case the stream could not be created
      Seit:
      i-net PDFC 3.0
    • getExtension

      protected abstract String getExtension()
      Get the extension of the target file
      Gibt zurück:
      the file extension like .pdf or .png
      Seit:
      i-net PDFC 4.3
    • setModel

      public void setModel(ResultModel newModel)
      Registers this presenter to a model. If it already was registered to a model, the old model will be detached first.
      Setzt außer Kraft:
      setModel in Klasse BasePresenter
      Parameter:
      newModel - the new